/**
 * Created by Administrator on 2017/11/28.
 */
getsignpackage();
function getsignpackage(){
    $.ajax({
        url:url+'getsignpackage',
        dataType:'json',
        type:'post',
        async:false,
        data:{
            'reurl':window.location.href
        },
        success:function(result){
            // console.log(result);
            var status = result.signPackage;
            var code = result.code;
            var data = result.signPackage;
            appid = data['appId'];
            timestamp = data['timestamp'];
            nonceStr = data['nonceStr'];
            signature = data['signature'];
        },
        error:function(){
            console.log();
        }
    })
}
